#define USE_OR_MASKS

#include <p18f46k22.h>
#include "usart.h"

#pragma config FOSC = HSHP //HS oscillator (high power > 16 MHz)
#pragma config WDTEN = OFF, LVP = OFF, MCLRE = EXTMCLR  //Watchdog timer off, single-supply ICSP disabled, MCLR pin enabled

#pragma code

unsigned char Txdata[] = "MICROCHIP_USART";

void main(void){
	Open2USART((USART_TX_INT_OFF | USART_RX_INT_OFF | USART_ASYNCH_MODE | USART_EIGHT_BIT | USART_CONT_RX | USART_BRGH_LOW), 0x40);

	while(1){
		while(Busy2USART());
		puts2USART( (char *)Txdata);
	}
}